#ifndef ASTNODE_BINARY_OPERATOR
#define ASTNODE_BINARY_OPERATOR
#include "AstNodeExpression.h"

class AstNodeBinaryOperator : public AstNodeExpression
{
  public:
    AstNodeBinaryOperator(int op, AstNodeExpression* left, AstNodeExpression *rite);
    virtual void dump(int level);
    virtual void  compile(class CompileVisitor *);

    inline int getOperator() { return op; }
    inline AstNodeExpression * getLeft() { return left; };
    inline AstNodeExpression * getRite() { return rite; };

    //virtual int  compile(ClassFile * klass, MethodInfo * method);

  private:
    int op;
    AstNodeExpression * left;
    AstNodeExpression * rite;
};

#endif
